function GetQueryString(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)");
    var r = window.location.search.substr(1).match(reg);
    if (r != null) return unescape(r[2]);
    return null;
}
var android = GetQueryString("android");
var ios = GetQueryString("ios");
var statusBarHeight = GetQueryString("statusBarHeight");
if (android != null && android.toString().length > 1 && Number(android) < 5) {
    document.documentElement.className += " remove-status-bar";
} else if (android != null && android.toString().length > 1 && Number(android) >= 5) {
    var nod = document.createElement("style"),
        str = 'body .header{padding-top:' + statusBarHeight + 'px!important;}';
    nod.type = 'text/css';
    if (nod.styleSheet) {
        nod.styleSheet.cssText = str;
    } else {
        nod.innerHTML = str;
    }
    document.getElementsByTagName('head')[0].appendChild(nod);
} else if (ios != null) {
    if(!statusBarHeight){
        statusBarHeight = 20;
    }
    var nod = document.createElement("style"),
        str = 'body .header{padding-top:' + statusBarHeight + 'px!important;}';
    nod.type = 'text/css';
    if (nod.styleSheet) {
        nod.styleSheet.cssText = str;
    } else {
        nod.innerHTML = str;
    }
    document.getElementsByTagName('head')[0].appendChild(nod);
}
